package com.ggk911.pharmacy_system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 供应商类
 *
 * @author ggk-911
 * @version 1.0 2023/3/9 10:38
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("supplier")
public class Supplier implements Serializable, IExcelModel, IExcelDataModel {

    @Excel(name = "供应商编号")
    @ApiModelProperty(value = "供应商编号")
    @TableId(value = "supplier_id", type = IdType.AUTO)
    private Integer supplierId;

    @Excel(name = "供应商名称")
    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @Excel(name = "供应商地址")
    @ApiModelProperty(value = "供应商地址")
    private String supplierAddr;

    @Excel(name = "供应商联系电话")
    @ApiModelProperty(value = "供应商联系电话")
    private String supplierPhone;

    @Excel(name = "供应商邮箱")
    @ApiModelProperty(value = "供应商邮箱")
    private String supplierEmail;

    @Excel(name = "供应商许可证")
    @ApiModelProperty(value = "供应商许可证")
    private String supplierLicense;

    @Excel(name = "供应商网站")
    @ApiModelProperty(value = "供应商网站")
    private String supplierWebsite;


    @Override
    public int getRowNum() {
        return 0;
    }

    @Override
    public void setRowNum(int rowNum) {

    }

    @Override
    public String getErrorMsg() {
        return null;
    }

    @Override
    public void setErrorMsg(String errorMsg) {

    }
}
